package com.guangzi.service.impl;

import com.guangzi.entity.BankCard;
import com.guangzi.mapper.BankCardDao;
import com.guangzi.service.AbstractService;
import com.guangzi.service.BankCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class BankCardServiceImpl extends AbstractService implements BankCardService {


    private BankCardDao bankCardDAO;

    @Autowired
    public void setBankCardDAO(BankCardDao bankCardDAO) {
        super.setBaseDAO(bankCardDAO);
        this.bankCardDAO = bankCardDAO;
    }


    @Override
    public void updateState(BankCard bankCard) {
        bankCardDAO.updateState(bankCard);
    }

    @Override
    public Long countDank(Long uid) {
        return bankCardDAO.countDank(uid);
    }

    @Override
    public String getDank(Long uid) {
        return bankCardDAO.getDank(uid);
    }

    @Override
    public String getType(Long uid) {
        return bankCardDAO.getType(uid);
    }
}
